<%@page import="POJO.SanPham"%>
<%@page import="java.util.ArrayList"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Trang chủ</title>
<link rel="stylesheet"
	href="http://localhost:8080/OnlineShop/css/style.css" type="text/css"
	media="all" />
</head>
<body>
<!-- Nhận về thông tin id.  -->
<!-- id có các giá trị từ 1 đến 4 tương ứng với việc hiện nội dung các Content_DanhMuc, Content_SanPham-->
<!-- Content_DonHang và ContentKhachHang -->
	<%
	    if (request.getAttribute("id") == null)
	    {
	%>
	<jsp:include page="Header.jsp"></jsp:include>
	<jsp:include page="Container.jsp"></jsp:include>
	<jsp:include page="Footer.jsp"></jsp:include>

	<%
	    }
	    else
	    {
	        String id = (String) request.getAttribute("id");
	%>
	<jsp:include page="Header.jsp"></jsp:include>
	<%
	    if (id.equals("1"))
	        {
	%>
	<jsp:include page="Content_DanhMucSanPham.jsp"></jsp:include>
	<%
	    }

	        if (id.equals("2"))
	        {
	%>
	<jsp:include page="Content_SanPham.jsp"></jsp:include>
	<%
	    }
	        if (id.equals("4"))
	        {
	%>
	<jsp:include page="Content_KhachHang.jsp"></jsp:include>
	<%
	    }
	        if (id.equals("3"))
	        {
	%>
	<jsp:include page="Content_DonHang.jsp"></jsp:include>
	<%
	    }
	%>
	<jsp:include page="Footer.jsp"></jsp:include>
</body>
</html>
<%
    }
%>